import request from '../utils/request'

export const getlogin = () => {
  return request({
    method: 'get',
    url: '/userInfo'
  })
}
export const setuser = data => {
  return request({
    method: 'post',
    url: '/userInfo',
    data
  })
}

export const getname = username => {
  return request({
    method: 'get',
    url: '/userInfo?username=' + username
  })
}